package overall.message.room
{
	import flash.utils.ByteArray;
	
	import xnet.Message.ISokcetMessage;
	import xnet.Message.MessageBase;

	public class GetUserListMsg extends MessageBase
	{
		public function GetUserListMsg()
		{
			super();
		}
		
		public var token:String;
		public var content:ByteArray;
		public var listLeng:int;
		public var objStr:String;
		public var userInfoVec:Vector.<UserInfoMsg>=new Vector.<UserInfoMsg>;
		override public function decodeSocketData(byteArray:ByteArray):ISokcetMessage
		{
			type = byteArray.readByte();
			token=byteArray.readUTF();
			var numbase:int=byteArray.readShort();
			if(numbase==0)return this;
			listLeng=byteArray.readShort();
			//byteArray.readBytes(content);
			for(var i:int=0;i<listLeng;i++){
				userInfoVec[i]=new UserInfoMsg;
				userInfoVec[i].decodeSocketData(byteArray);
			}
			return this;
		}
	}
}